<!doctype html public "-//W3C//DTD HTML 4.01//EN">

<html>

   <head>
      <title>La Union Online Library System -- Home</title>
      <meta http-equiv='generator' content='PHP Designer 2005' />
      <style type="text/css">
        @import url(style.css);
      </style>
   </head>
   
<?php
     if(isset($_COOKIE["user"]))
     {
        
    }
    else
    {
        echo"<script> alert('You are not logged in.');</script>";
        echo("<script> document.location.href='account.php' </script>");
    }

     require('db_connection.php');
    $query ="SELECT * FROM tbllibrary";
    $result = mysql_query($query);
?>

<?php

   echo"<body>
        <table  width='80%' align='center' >
            <tr ><td class='outerframe'>
                <table width='100%'>
                <tr>
                    <td width='100%' colspan='2' >
                    <table width='100%'><tr>
                   <img src ='images/banner.jpg'></td></tr>";
                echo"<tr><td colspan='2' class='login'>";
                require('loginout.php');
                echo" </td></tr>";
                echo"<tr><td width='20%' class='menu' valign='top'>";
                    require('menu.php');
                echo"</td>
                    <td class='content' width='80%' background ='images/background.jpg'>
                        <p class='titles' align='top'>Change Password</p>

                        <form method='post' action='change.php'>
                        <table align='center' width='50%' class='outerframe2'>";
                        echo "<form method='POST' action='pass.php?adminID=$adminID'>"; 
                        echo"<tr><td>&nbsp;&nbsp;Old Password</td><td>";
                        echo"<input type='password' size='25' name='oldPass'></td></tr>

                            <tr><td>&nbsp;&nbsp;New Password</td><td><input type='password' size='25' name='newPass'></td></tr>

                            <tr><td>&nbsp;&nbsp;Retype New Password</td><td><input type='password' size='25' name='cnewPass'></td></tr>
                            <tr><td align='center' colspan='2'><input type='submit' name='log' value='Save' class='tool'></td></tr>
                            <tr><td height='15'></td></tr>";
                        echo "</form>"; 
            echo"</table>
                        </form></td></tr>
                <tr>";
                echo"<td colspan='2' class='outerframe2'>";
                require('contact.php');
                echo"</td></tr>";
                echo"</table>
        </td></tr></table>
    </body>
</html>";


?>
